what does a thoracic surgeon do